package com.yiwyn.reflectdemo.domain;

import com.yiwyn.reflectdemo.event.TestEvent;
import lombok.Data;

@Data
public class Cat extends Animal {

    private Integer age;

    private TestEvent<Cat> testEvent = new TestEvent<Cat>() {
        @Override
        public Object trigger(Cat cat) {
            System.out.println("测试事件s" + cat.getName());
            return null;
        }
    };

}
